package com.ikingtech.framework.sdk.organization.api;

import java.util.List;

/**
 * @author tie yan
 */
public interface OrgDeptApi {

    /**
     * Moves a department to a new parent organization.
     *
     * @param parentOrgId The ID of the new parent organization.
     * @param orgIds The list of department IDs to be moved.
     */
    void moveDepartment(String parentOrgId, List<String> orgIds);

    /**
     * Loads the department IDs of a given organization.
     *
     * @param orgId The ID of the organization.
     * @return A list of department IDs belonging to the organization.
     */
    List<String> loadDepartmentIds(String orgId);

    /**
     * Loads the organization ID(s) associated with the given department IDs.
     *
     * @param deptIds The list of department IDs.
     * @return A list of organization IDs associated with the department IDs.
     */
    List<String> loadOrganizationIdByDepartmentIds(List<String> deptIds);
}
